home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
X User Tools
/
X User Tools (O'Reilly and Associates)(1994).ISO
/
sources
/
xless
/
xless141.z
/
xless141
/
xless-1.4.1
/
actions.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-10-20
|
883b
|
37 lines
#include "xless.h"
static void QuitAction ARGS((Widget, XButtonEvent *, String *, Cardinal *));
static void HelpAction ARGS((Widget, XButtonEvent *, String *, Cardinal *));
XtActionsRec actions[] = {
{ "quit", (XtActionProc )QuitAction },
/* { "search", (XtActionProc )SearchAction }, */
/* { "search_next", (XtActionProc )SearchNextAction }, */
/* { "editor", (XtActionProc )EditorAction }, */
/* { "reload", (XtActionProc )ReloadAction }, */
/* { "change_file", (XtActionProc )ChangeFileAction }, */
/* { "new_window", (XtActionProc )NewWindowAction }, */
{ "help", (XtActionProc )HelpAction },
};
Cardinal numactions = XtNumber(actions);
static void
QuitAction(w, e, p, n)
Widget w;
XButtonEvent *e;
String *p;
Cardinal *n;
{
QuitFunction();
}
static void
HelpAction(w, e, p, n)
Widget w;
XButtonEvent *e;
String *p;
Cardinal *n;
{
PopupHelp(w, NULL, NULL);
}